<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>27_属性-增-中扩号语法</title>
    </head>
    <body>
        <script>
            var person = {name:'方园'};
            // 中括号语法 中间的属性要添加引号  否则就被当成变量了
            person['age'] = 18;
            console.log(person);
        </script>
    </body>
</html>